/*
 * @Author: 谢子健 1075010289@qq.com
 * @Date: 2024-05-10 20:07:06
 * @LastEditors: 谢子健 1075010289@qq.com
 * @LastEditTime: 2024-05-10 20:07:25
 * @FilePath: \project\src\utils\time.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const getTime = () => {
  let msg = ''
  let hours = new Date().getHours()
  if (hours <= 9) {
    msg = '早上'
  } else if (hours <= 12) {
    msg = '上午'
  } else if (hours <= 18) {
    msg = '下午'
  } else {
    msg = '晚上'
  }
  return msg
}
